package com.liu.algorithm.test;

import java.awt.*;
import java.util.Arrays;


public class test {
    public static void main(String[] args) {
        int[] arr = {7, 1, 3, 5, 1, 6, 8, 1, 3, 5, 7, 5, 6};
        int[] insertSort = InsertSort.sort(arr);
        int[] shellSort = ShellSort.sort(arr);
        int[] selectionSort = SelectionSort.sort(arr);
        int[] bubbleSort = BubbleSort.sort(arr);
        System.out.println("插入排序：" + Arrays.toString(insertSort));
        System.out.println("希尔排序：" + Arrays.toString(shellSort));
        System.out.println("选择排序：" + Arrays.toString(selectionSort));
        System.out.println("冒泡排序：" + Arrays.toString(bubbleSort));
        System.out.println("原数组：" + Arrays.toString(arr));
    }
}
